package exams.binary;

import java.util.List;

public class WeightedBinaryTreeSolutionTest {

    private final static WeightedBinaryTreeSolution weightedBinaryTreeSolution = new WeightedBinaryTreeSolution();

    public static void main(String[] args){
        testSumAllPathsForArr();
    }

    public static void testSumAllPathsForTree() {
        TreeNode treeNode = new TreeNode(3);
        treeNode.left = new TreeNode(4);
        treeNode.right = new TreeNode(5);

        List<Integer> res = weightedBinaryTreeSolution.sumAllPaths(treeNode);

        System.out.println(res.toString());
    }

    public static void testSumAllPathsForArr() {
        int[][] arr = {
                {3, 2, 5, 0},
                {4, -1, 5, 2},
                {1, 3, -5, 7}
        };

        List<Integer> res = weightedBinaryTreeSolution.sumAllPaths(arr);

        System.out.println(res.toString());
    }

}
